﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using Modules.Core;

namespace ComputerStoreManager.ViewModel
{
    public delegate void OnViewGrowRateHandler();
    class StatisticControlViewModel
    {
        #region ICommand
        public ICommand ViewGrowRateCommand
        {
            get;
            private set;
        }
        #endregion

        #region Events
        public event OnViewGrowRateHandler OnViewGrowRateClicked;
        #endregion

        public void InitCmd()
        {
            ViewGrowRateCommand = new ExecutableCommand(DoViewGrowRate);
        }

        public void DoViewGrowRate()
        {
            if (OnViewGrowRateClicked != null)
            {
                OnViewGrowRateClicked();
            }
        }
    }
}
